from selenium.webdriver.common.by import By

from base.base import Base
class Page(Base):
    # 定位值
    username=(By.ID,"username")
    password=(By.ID,'password')
    login=(By.XPATH,'//*[@id="loginForm"]/button')
    # 封装
    def username_id(self):
        self.send_keys(self.username,"13485456209")
    def password_id(self):
        self.send_keys(self.password,"1234555uuu")
    def login_xpath(self):
        self.click(self.login)
